﻿#pragma once
#include "afxdialogex.h"
#include "device_scan.h"
#include "device_ctrl.h"
#include "dlg_main.h"

// dlg_device_scan 对话框

class dlg_device_scan : public CDialogEx
{
	DECLARE_DYNAMIC(dlg_device_scan)

public:
	dlg_device_scan(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~dlg_device_scan();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DLG_DEVICE_SCAN };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangeComboLocalNetcard();
	afx_msg void OnBnClickedBtnStartScanDevice();
	afx_msg LRESULT OnNewDeviceInfo(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnNewDeviceCfgMsg(WPARAM wParam, LPARAM lParam);
	device_scan *scan;
	device_ctrl* ctrl;
	dlg_main*    cfg;
	afx_msg void OnBnClickedBtnOpenDevice();
};
